<?php
if (!defined('__BACKEND__')) die ("you cannot directly access this page");
include ("class/AppSession.php");
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
global $user_id;
if (isset($user_id)){
$user_log=new AppSession();
$user_log->app_session_id=  session_id();
$user_log->app_user_id=$user_id;
$user_log->updateLogout();
 
$_SESSION['user_id']=0;
$_SESSION['user_name']=null;
$_SESSION['login_status']=false;
$_SESSION['is_admin']=0;
session_destroy();
} else {
    message_box("Warning!", "You Already Sign Out!");
}
refresh_to("index.php", "Back to Home Page", 2);
?>
